Make GtkNotebook able to drop detached tabs anywhere. Bug #360225.
authorCarlos Garnacho <carlosg@gnome.org>
Thu, 28 Dec 2006 16:38:49 +0000 (16:38 +0000)
committerCarlos Garnacho <carlosg@src.gnome.org>
Thu, 28 Dec 2006 16:38:49 +0000 (16:38 +0000)
commitd42bbb646619204913cae54eb675e898437d0ebe
tree694816096f3bff3e3c0a0f8301a30e0eb96c7d8b
parent693c3c2649abb0f907d144c05a1d55edb6a5f97c
Make GtkNotebook able to drop detached tabs anywhere. Bug #360225.

2006-12-28  Carlos Garnacho  <carlosg@gnome.org>

        Make GtkNotebook able to drop detached tabs anywhere. Bug #360225.

        * gtk/gtkwidget.c (gtk_widget_class_init): add "drag-failed" signal.
        * gtk/gtkmarshalers.list: add new marshaler definition.
        * gtk/gtkenums.h: add GtkDragResult enum.

        * gtk/gtkdnd.c (gtk_drag_drop_finished): emit "drag-failed" if DND
        operation wasn't successful.
        (_gtk_drag_source_handle_event) (gtk_drag_drop)
        (gtk_drag_selection_get) (gtk_drag_cancel) (gtk_drag_key_cb)
        (gtk_drag_grab_broken_event_cb) (gtk_drag_grab_notify_cb)
        (gtk_drag_button_release_cb) (gtk_drag_abort_timeout): tell
        gtk_drag_drop_finished() the operation result.

        * gtk/gtknotebook.c (gtk_notebook_drag_failed): new function.
        (gtk_notebook_drag_data_get): do not call window creation hook here.
        (gtk_notebook_init): do not set "application/x-rootwindow-drop"
        target, instead connect to "drag-failed".
        (gtk_notebook_draw_focus): fix potential crasher if cur_page is NULL.
ChangeLog
gtk/gtkdnd.c
gtk/gtkenums.h
gtk/gtkmarshalers.list
gtk/gtknotebook.c
gtk/gtkwidget.c